#ifndef BULLET_H
#define BULLET_H

#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QFileInfo>
#include <QMap>
#include <QPainter>
#include <QList>
#include <QPointF>
#include <QPixmap>
#include <QRectF>
#include <QDebug>
#include"enemyspark.h"
class Bullet : public QGraphicsItem
{
public:
    Bullet(QGraphicsScene *scene);
    Bullet(const Bullet &);

    virtual QRectF boundingRect() const;
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
    void CallSmoke();
    virtual void advance(int phase);
    bool isVisible() const;
    void setVisible(bool visible);

    QString root;
    QGraphicsScene *scene;
    double speed;
    double damage;
    QPixmap pix;
    QList<QPixmap> pix_map;
    int Times;
    bool symbol;
    EnemySpark *enemyspark;
    //EnemySpark Es;
};

#endif // BULLET_H
